<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>   
<script type="text/javascript">
function mg_savecporderconfig(type)
{
    if (!confirm("确定继续？"))
    {
        return false;
    }
    var url = "mg/orderconfig/appsave.do?type=" + type;
    var objectid = "content";
    postXMLHttpRequest(url, "myform", objectid); 
}
</script>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5"></td>
    <td>   
  <form id="myform" name="myform"
        method="post" action="">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="3">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_top_left.jpg" width="20" height="15" /></td>
            <td><img src="images/table_top_bg.jpg" width="770" height="15"/></td>
            <td align="right">
              <img src="images/table_top_right.jpg" width="20" height="15" /></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td height="25" colspan="3" class="table_blue">
        <strong><img src="images/dot.jpg" width="13" height="9">CP-应用参数配置（所属CP：<s:property value="cpinfo.cpName"/>）</strong>
        <input type="hidden" id="cpinfo.id" name="cpinfo.id" value="<s:property value="cpinfo.id"/>"/>
        </td>
    </tr>
    <tr>
	      <td class="table_g1"  width="33%" align="center">
			应用名称
	      </td>
	      <td class="table_g2" width="33%" align="center">
	      	值
	      </td>
	    </tr>
    <s:iterator value="applist" status="stat">
	    <tr>
	      <td class="table_w1"  width="33%" align="center">
			<s:property value="appname"/>
	      </td>
	      <td class="table_w2" width="33%" align="center">
	      <s:set name="pvalue" value="100"></s:set>
	      <s:iterator value="list" status="stat1"><s:if test="applist.get(#stat.index).appnumber==apknumber"><s:set name="pvalue" value="percentage"/></s:if></s:iterator>
	      <input type="text" id="percentage_<s:property value="appnumber"/>" name="percentage_<s:property value="appnumber"/>" value="<s:property value="#pvalue"/>" />
	      </td>
	    </tr>
    </s:iterator>
    <tr>
      <td colspan="3" class="table_w1" align="center">
        <button id="btn2" dojoType="dijit.form.Button"
            onclick="mg_savecporderconfig('insert');">保存</button>
            &nbsp;&nbsp;
            <button id="btn3" dojoType="dijit.form.Button"
            onclick="mg_cporderconfiglist();">返回</button>
      </td>      
    </tr>
    <tr> 
      <td colspan="3" background="images/table_bom_bg.jpg">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/table_bom_left.jpg" width="20" height="15"></td>
          <td></td>
          <td align="right">
            <img src="images/table_bom_right.jpg" width="20" height="15"></td>
        </tr>
        </table>
      </td>
    </tr>
  </table>  
  </form>
  </td>
  <td width="5"></td>
  </tr>
  </table>